﻿<%@ Page Title="" Language="C#" MasterPageFile="~/App_MasterPages/layout.Master" AutoEventWireup="true" CodeBehind="OpinionDetails.aspx.cs" Inherits="blackhouse.StareKino.Web.OpinionDetails" %>

<asp:Content ID="Content1" ContentPlaceHolderID="leftContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContent" runat="server">
    <%@ Register Src="~/Modules/OpinionItem.ascx" TagName="OpinionItem" TagPrefix="blackhouse" %>
    <%@ Register Src="~/Modules/ApartmentGroupLine.ascx" TagName="ApartmentGroupLine"
        TagPrefix="blackhouse" %>
    <%@ Register Assembly="blackhouse.Web.Controls" Namespace="blackhouse.Web.Controls" TagPrefix="blackhouse" %>
    <%@ Register Src="~/Modules/OpinionCategories.ascx" TagPrefix="blackhouse" TagName="OpinionCategories" %>

    <blackhouse:Notification runat="server" ID="notifSaveSuccess" Visible="false" Title="Opinia została zmoderowana!" NotificationType="Success" TimeoutShow="6000">Zmiany wprowadzone w formularzu zostały zapisane.</blackhouse:Notification>
    <blackhouse:Notification runat="server" ID="notifErrorSave" Visible="false" Title="Wystąpił błąd przy zapisie" NotificationType="Error" TimeoutShow="6000">Opinia została opublikowana i od tej chwili jest dostępna dla wszystkich odwiedzających.</blackhouse:Notification>
    <blackhouse:Notification runat="server" ID="notifPublished" Visible="false" Title="Opinia została opublikowana" NotificationType="Success" TimeoutShow="6000">Opinia została opublikowana i od tej chwili jest dostępna dla wszystkich odwiedzających. Zmiany wprowadzone w formularzu również zostały zapisane.</blackhouse:Notification>

    <section id="opinionDetails">
        <div id="opinionsHeader" class="topBlueHeader doubleLine">
            <div class="hgroup">
                <h1><%=GetGlobalResourceObject("Opinions", "opinionS1")%>:
                <asp:Literal runat="server" ID="ltlPublisherName" /></h1>
                <div class="cleaner"></div>
                <%=GetGlobalResourceObject("Opinions", "opinionS2")%>: 
            <asp:Literal runat="server" ID="ltlPublishDate" />
            </div>
        </div>
        <div class="cleaner"></div>
        <blackhouse:OpinionCategories runat="server" ID="ctrlOpinionCategories" HeaderTitle="<%$ Resources:Opinions, opinionH1 %>" CssClass="opinionDetailCategories" />

        <div class="blueStartBox opinion-details-content opinion-positive">
            <div class="sw-border-left"></div>
            <h4><%=GetGlobalResourceObject("Opinions", "iLike")%>:</h4>
            <asp:Literal runat="server" ID="lblInPlus" Text="<%$ Resources:Opinions, iLikeNoCt %>" />
            <asp:TextBox TextMode="MultiLine" runat="server" ID="txtInPlus" CssClass="inline-editor" Visible="false"></asp:TextBox>
        </div>
        <div class="blueStartBox opinion-details-content opinion-negative">
            <h4><%=GetGlobalResourceObject("Opinions", "iDisLike")%>:</h4>
            <asp:Literal runat="server" ID="lblInMinus" Text="<%$ Resources:Opinions, iDisLikeNoCt %>" />
            <asp:TextBox TextMode="MultiLine" runat="server" ID="txtInMinus" CssClass="inline-editor" Visible="false"></asp:TextBox>
            <asp:Panel runat="server" ID="pnlAnswer" Visible="false" CssClass="opinion-answer">
                <div class="sw-border-left"></div>
                <h4><%=GetGlobalResourceObject("Opinions", "opinionComment")%>:</h4>
                <asp:Literal runat="server" ID="lblAnswer" />
                <asp:TextBox TextMode="MultiLine" runat="server" ID="txtAnswer" CssClass="inline-editor" Visible="false"></asp:TextBox>
            </asp:Panel>
        </div>
        
        <asp:Panel runat="server" ID="pnlActions" Visible="false" CssClass="gray-box-v2 opinion-actions">
            <asp:LinkButton runat="server" ID="lnkSave" CssClass="white-button fr" OnClick="lnkSave_Click">Zapisz</asp:LinkButton>
            <asp:LinkButton runat="server" ID="lnkPublish" CssClass="white-button fr" Visible="false" OnClick="lnkPublish_Click">Publikuj</asp:LinkButton>
            <div class="cleaner"></div>
        </asp:Panel>

        <div class="groupBlueStartBoxContent">
            <h5 class="brownHeader"><%=GetGlobalResourceObject("Opinions", "apartOpinion")%>:</h5>
            <blackhouse:ApartmentGroupLine runat="server" ID="apartmentLine" />
        </div>
        <asp:Panel runat="server" ID="pnlSimilarOpinions" CssClass="groupBlueStartBoxContent similarOpinions">
            <asp:HiddenField runat="server" ID="opinionId" ClientIDMode="Static" />
            <h5 class="blueHeader"><%=GetGlobalResourceObject("Opinions", "opinionS3")%>:</h5>
            <asp:Repeater runat="server" ID="rptOpinions">
                <ItemTemplate>
                    <blackhouse:OpinionItem runat="server" ID="item" CssClass="blueStartBox" Opinion="<%#Container.DataItem %>" />
                </ItemTemplate>
            </asp:Repeater>
           
        </asp:Panel>
         <asp:Panel runat="server" ID="pnlOpinionsLoad" CssClass="loadOpinions" Visible="false">
                <img src="/Data/SiteImages/285.gif" />
             <%=GetGlobalResourceObject("Opinions", "opinionS4")%>
            </asp:Panel>
            <div id="opinions-load-trigger" data-panel="opinionsloadtrigger"></div>

            <asp:Panel runat="server" ID="pnlNoOpinion" Visible="false">
                <%=GetGlobalResourceObject("Opinions", "opinionS5")%>
            </asp:Panel>
    </section>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="rightContent" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="pageEditContent" runat="server">
</asp:Content>
